package cn.com.cym.gamezao.dto;

import cn.com.cym.gamezao.enums.DateTimeRange;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.lang.NonNull;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 值班调休DTO
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "值班记录调休DTO")
public class DutyRecordOffDto implements Serializable {
    private static final long serialVersionUID = 4560516580785399099L;

    @NonNull
    List<Long> ids;

    /**
     * 调休日期
     */
    @NonNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate offDay;


    /**
     * 调休区间
     */
    @NonNull
    private DateTimeRange offDuring;

    /**
     * 绑定记录，
     */
    @NonNull
    private Long bindRecord;

}
